<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.cookie.js"></script>
</head>
<body>
<div>
    <input type="hidden" value="wangnian" name="name" id="name">
    <input type="hidden" value="10000" name="money" id="money">
    <input type="submit" value="正常提交" id="indexBtn">
</div>

<script>
    $("#indexBtn").click(function () {
        let _csrf = $.cookie('XSRF-TOKEN');
        $.post('/transfer',{name:$("#name").val(),money:$("#money").val(),_csrf:_csrf},function (data) {
            alert(data);
        })
    })
</script>
</body>
</html>
